package com.xl.thisword;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: lei·xie
 * @Created: 2024/3/14 0014 10:11
 */
public class Student {

    double score;

    public void printThis() {
        System.out.println(this);
    }

    public void printPass(double score) {
        //this.score就表示当前对象的score属性
        if (this.score >= score) {
            System.out.println("恭喜您达到了分数线！");
        } else {
            System.out.println("很遗憾，您没有达到分数线！");
        }
    }
}
